/**
 * Copyright (C) 2018-2022
 * All rights reserved, Designed By www.dynread.com
 * 注意：
 * 本软件为www.dynread.com开发研制，项目使用请保留此说明
 */
package com.dynread.mall.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dynread.common.core.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 商城订单详情
 *
 * @author drinvay
 * @date 2022/5/6 17:42
 */
@Data
@TableName("order_item")
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "商城订单详情")
public class OrderItem extends BaseModel {
    private static final long serialVersionUID = 1L;

    /**
     * 订单ID
     */
    @ApiModelProperty(value = "订单ID")
    private String orderId;

    /**
     * 商品ID
     */
    @ApiModelProperty(value = "商品ID")
    private String spuId;

    /**
     * 商品名
     */
    @ApiModelProperty(value = "商品名")
    private String spuName;

    /**
     * 图片
     */
    @ApiModelProperty(value = "图片")
    private String picUrl;

    /**
     * 商品数量
     */
    @ApiModelProperty(value = "商品数量")
    private Integer quantity;

    /**
     * 购买单价
     */
    @ApiModelProperty(value = "购买单价")
    private BigDecimal salesPrice;

    /**
     * 运费金额
     */
    @ApiModelProperty(value = "运费金额")
    private BigDecimal freightPrice;

    /**
     * 支付金额（购买单价*商品数量+运费金额）
     */
    @ApiModelProperty(value = "支付金额（购买单价*商品数量+运费金额）")
    private BigDecimal paymentPrice;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

	@TableField(exist = false)
	private String createBy;
	@TableField(exist = false)
	private String updateBy;
}
